@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/service.scss';

.main {
    width: 100%;
    min-height: calc(100vh - 50px);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: #fff;

    .page-container {
        width: 100%;
        // background-color: yellowgreen;

        .cart-main {
            width: 1200px;
            margin: 30px auto;
            overflow: hidden;
            margin-bottom: 50px;

            .myCart {
                height: 50px;
                line-height: 50px;

                span {
                    display: inline-block;
                    font-size: 28px;
                    font-weight: 600;
                    position: relative;
                    color: #03234c;
                    overflow: hidden;
                    vertical-align: middle;

                    &:before {
                        content: '';
                        height: 4px;
                        width: 55px;
                        background: #03234c;
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }

                .total-num {
                    font-style: normal;
                    color: hotpink;
                    margin-left: 10px;
                    vertical-align: bottom;
                    display: inline-block;
                    line-height: 35px;
                    font-weight: 900;
                    font-size: 17px;
                }
            }

            .cart-top {
                margin: 5px 0 15px;

                .checkbox-input {
                    width: 15px;
                    height: 15px;
                    margin-top: 2px;
                }
            }

            .cart-table {
                width: 100%;
                border-collapse: collapse;
                border-spacing: 0;

                tr {
                    display: table-row;

                    td {
                        padding: 20px 0;
                        border-bottom: 1px solid #c3c3c3;
                    }

                    .check {
                        width: 40px;
                    }

                    .img {
                        width: 150px;

                        >a>img {
                            display: block;
                            width: 100px;
                            margin: 0 auto;
                        }
                    }

                    .infos {
                        width: 1010px;

                        .info-top {
                            .fl {
                                width: 900px;
                                float: left;

                                h5 {
                                    font-size: 18px;
                                    color: #03234c;
                                    font-weight: 600;
                                    line-height: 30px;
                                }

                                p {
                                    font-size: 13px;
                                    line-height: 22px;
                                    color: #777;

                                    span {
                                        margin: 0 7px;
                                        margin-left: 0;
                                    }
                                }
                            }

                            .fr {
                                width: 100px;
                                text-align: right;
                                float: right;
                                text-align: right;

                                .infos-price {
                                    display: block;
                                    color: #03234c;
                                    font-size: 16px;
                                }

                                .infos-originPrice {
                                    display: block;
                                    color: #777;
                                    font-size: 13px;
                                    text-decoration: line-through;
                                }
                            }
                        }

                        .info-bot {

                            .fl {
                                width: 900px;
                                font-size: 13px;
                                line-height: 22px;
                                color: #777;
                                float: left;

                                span {
                                    margin-left: 0;
                                }

                                input {

                                    outline: 0;
                                    border: 1px solid #ccc;
                                    margin-left: -1px;
                                    margin-right: -1px;
                                    height: 26px;
                                    text-align: center;
                                    width: 80px;
                                    vertical-align: middle;
                                }

                                a.num-minus {
                                    display: inline-block;
                                    height: 26px;
                                    width: 30px;
                                    border: 1px solid #ccc;
                                    text-align: center;
                                    font-size: 18px;
                                    line-height: 24px;
                                    vertical-align: middle;
                                    color: #999;
                                }

                                a.num-plus {
                                    @extend .num-minus
                                }
                            }

                            .fr {
                                width: 100px;
                                text-align: right;
                                font-size: 13px;
                                line-height: 22px;
                                color: #777;
                                float: right;

                                .delete-one {
                                    color: #777;
                                    font-size: 13px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.cart-foot {

    .fl {
        float: left;
    }
    .fr{
        float: right;
    }
    z-index: 100;
    position: fixed;
    height: 70px;
    overflow: hidden;
    width: 100%;
    min-width: 700px;
    border-top: 1px solid #5d5d5d;
    bottom: 0;
    left: 0;
    background: rgba(3, 35, 76, 0.98);
    color: #fff;

    .w-1280 {
        width: 1280px;
        margin: 0 auto;
        overflow: hidden;

        .sum-infos {
            width: 1000px;
            margin-right: 20px;
            margin-top: 15px;
            line-height: 40px;
            float: left;

            .sum-operate>label, .sum-operate>a {
                margin-right: 15px;

                input.checkbox-input {
                   width: 15px;
                   height: 15px;
                }
                .delete-multi{
                    margin-right: 15px;
                }
            }
            .sum-totalprice>span {
                display: block;
                line-height: 14px;
                margin-bottom: 7px;
            }
            .price {
                font-size: 18px;
                line-height: 30px;

            }
        }

        .sum-to-settle {
            height: 40px;
            padding: 0 30px;
            border-left: 1px solid #999;
            margin-top: 15px;
            
            >a {
                color: white;
                display: block;
                height: 40px;
                width: 150px;
                text-align: center;
                background: #cf112b;
                line-height: 40px;
                font-size: 15px;
            }
        }
    }
}
.empty{
    display: none;
}
.cart-empty{

    height: 200px;
    width: 200px;
    position: absolute;
    top:0 ;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;

    p{
        font-size: 21px;
    }
}

.frCar{display: none;}
